<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://unpkg.com/react@16/umd/react.development.js"></script>
    <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
    <script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
    <div id="app"></div>

    <!-- type="text/babel" 浏览器不会解析这里的代码，babel会读取到这里的内容，并进行解析，然后生成浏览器可识别的js代码 -->
    <script type="text/babel">
        /**
         * JSX
         *     JavaScript XML
         *     基于JavaScript的语言，融合了XML,我们可以在js中书写xml
         *
         *     xml: 可扩展（自定义）标记语言
         *     <users>
         *         <user id="1">
         *             <username>MoTao</username>
         *         </user>
         *         <user>
         *             <username>MoTao</username>
         *         </user>
         *     </users>
         */

        ReactDOM.render(
            <h1>Hello React!</h1>,
            document.getElementById('app')
        );
    </script>
</body>
</html>
